package demo;

import java.util.Arrays;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: YKH
 * Date: 2023-03-19
 * Time: 18:43
 */
public class Main10 {
    public static void main(String[] args) {
        int []a = {1,2,3,4,5};
        System.out.println(Arrays.toString(a));
        func(a);
        System.out.println(Arrays.toString(a));
        fuc2(a);
        System.out.println(Arrays.toString(a));
    }

    private static void func(int[] a) {
        a = new int[]{7,8,9};
    }

    public static void fuc2(int[]a){
        a[0] = 100;
    }
}
